package com.ymttest.database.sharding.db.sharding.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PaymentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PaymentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPaymentIdIsNull() {
            addCriterion("payment_id is null");
            return (Criteria) this;
        }

        public Criteria andPaymentIdIsNotNull() {
            addCriterion("payment_id is not null");
            return (Criteria) this;
        }

        public Criteria andPaymentIdEqualTo(Long value) {
            addCriterion("payment_id =", value, "paymentId");
            return (Criteria) this;
        }

        public Criteria andPaymentIdNotEqualTo(Long value) {
            addCriterion("payment_id <>", value, "paymentId");
            return (Criteria) this;
        }

        public Criteria andPaymentIdGreaterThan(Long value) {
            addCriterion("payment_id >", value, "paymentId");
            return (Criteria) this;
        }

        public Criteria andPaymentIdGreaterThanOrEqualTo(Long value) {
            addCriterion("payment_id >=", value, "paymentId");
            return (Criteria) this;
        }

        public Criteria andPaymentIdLessThan(Long value) {
            addCriterion("payment_id <", value, "paymentId");
            return (Criteria) this;
        }

        public Criteria andPaymentIdLessThanOrEqualTo(Long value) {
            addCriterion("payment_id <=", value, "paymentId");
            return (Criteria) this;
        }

        public Criteria andPaymentIdIn(List<Long> values) {
            addCriterion("payment_id in", values, "paymentId");
            return (Criteria) this;
        }

        public Criteria andPaymentIdNotIn(List<Long> values) {
            addCriterion("payment_id not in", values, "paymentId");
            return (Criteria) this;
        }

        public Criteria andPaymentIdBetween(Long value1, Long value2) {
            addCriterion("payment_id between", value1, value2, "paymentId");
            return (Criteria) this;
        }

        public Criteria andPaymentIdNotBetween(Long value1, Long value2) {
            addCriterion("payment_id not between", value1, value2, "paymentId");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Long value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Long value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Long value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Long value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Long value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Long> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Long> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Long value1, Long value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Long value1, Long value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andPayTypeIsNull() {
            addCriterion("pay_type is null");
            return (Criteria) this;
        }

        public Criteria andPayTypeIsNotNull() {
            addCriterion("pay_type is not null");
            return (Criteria) this;
        }

        public Criteria andPayTypeEqualTo(Integer value) {
            addCriterion("pay_type =", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeNotEqualTo(Integer value) {
            addCriterion("pay_type <>", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeGreaterThan(Integer value) {
            addCriterion("pay_type >", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("pay_type >=", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeLessThan(Integer value) {
            addCriterion("pay_type <", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeLessThanOrEqualTo(Integer value) {
            addCriterion("pay_type <=", value, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeIn(List<Integer> values) {
            addCriterion("pay_type in", values, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeNotIn(List<Integer> values) {
            addCriterion("pay_type not in", values, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeBetween(Integer value1, Integer value2) {
            addCriterion("pay_type between", value1, value2, "payType");
            return (Criteria) this;
        }

        public Criteria andPayTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("pay_type not between", value1, value2, "payType");
            return (Criteria) this;
        }

        public Criteria andPayStatusIsNull() {
            addCriterion("pay_status is null");
            return (Criteria) this;
        }

        public Criteria andPayStatusIsNotNull() {
            addCriterion("pay_status is not null");
            return (Criteria) this;
        }

        public Criteria andPayStatusEqualTo(Integer value) {
            addCriterion("pay_status =", value, "payStatus");
            return (Criteria) this;
        }

        public Criteria andPayStatusNotEqualTo(Integer value) {
            addCriterion("pay_status <>", value, "payStatus");
            return (Criteria) this;
        }

        public Criteria andPayStatusGreaterThan(Integer value) {
            addCriterion("pay_status >", value, "payStatus");
            return (Criteria) this;
        }

        public Criteria andPayStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("pay_status >=", value, "payStatus");
            return (Criteria) this;
        }

        public Criteria andPayStatusLessThan(Integer value) {
            addCriterion("pay_status <", value, "payStatus");
            return (Criteria) this;
        }

        public Criteria andPayStatusLessThanOrEqualTo(Integer value) {
            addCriterion("pay_status <=", value, "payStatus");
            return (Criteria) this;
        }

        public Criteria andPayStatusIn(List<Integer> values) {
            addCriterion("pay_status in", values, "payStatus");
            return (Criteria) this;
        }

        public Criteria andPayStatusNotIn(List<Integer> values) {
            addCriterion("pay_status not in", values, "payStatus");
            return (Criteria) this;
        }

        public Criteria andPayStatusBetween(Integer value1, Integer value2) {
            addCriterion("pay_status between", value1, value2, "payStatus");
            return (Criteria) this;
        }

        public Criteria andPayStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("pay_status not between", value1, value2, "payStatus");
            return (Criteria) this;
        }

        public Criteria andPayableAmountIsNull() {
            addCriterion("payable_amount is null");
            return (Criteria) this;
        }

        public Criteria andPayableAmountIsNotNull() {
            addCriterion("payable_amount is not null");
            return (Criteria) this;
        }

        public Criteria andPayableAmountEqualTo(BigDecimal value) {
            addCriterion("payable_amount =", value, "payableAmount");
            return (Criteria) this;
        }

        public Criteria andPayableAmountNotEqualTo(BigDecimal value) {
            addCriterion("payable_amount <>", value, "payableAmount");
            return (Criteria) this;
        }

        public Criteria andPayableAmountGreaterThan(BigDecimal value) {
            addCriterion("payable_amount >", value, "payableAmount");
            return (Criteria) this;
        }

        public Criteria andPayableAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("payable_amount >=", value, "payableAmount");
            return (Criteria) this;
        }

        public Criteria andPayableAmountLessThan(BigDecimal value) {
            addCriterion("payable_amount <", value, "payableAmount");
            return (Criteria) this;
        }

        public Criteria andPayableAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("payable_amount <=", value, "payableAmount");
            return (Criteria) this;
        }

        public Criteria andPayableAmountIn(List<BigDecimal> values) {
            addCriterion("payable_amount in", values, "payableAmount");
            return (Criteria) this;
        }

        public Criteria andPayableAmountNotIn(List<BigDecimal> values) {
            addCriterion("payable_amount not in", values, "payableAmount");
            return (Criteria) this;
        }

        public Criteria andPayableAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("payable_amount between", value1, value2, "payableAmount");
            return (Criteria) this;
        }

        public Criteria andPayableAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("payable_amount not between", value1, value2, "payableAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountIsNull() {
            addCriterion("thirdparty_amount is null");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountIsNotNull() {
            addCriterion("thirdparty_amount is not null");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountEqualTo(BigDecimal value) {
            addCriterion("thirdparty_amount =", value, "thirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountNotEqualTo(BigDecimal value) {
            addCriterion("thirdparty_amount <>", value, "thirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountGreaterThan(BigDecimal value) {
            addCriterion("thirdparty_amount >", value, "thirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("thirdparty_amount >=", value, "thirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountLessThan(BigDecimal value) {
            addCriterion("thirdparty_amount <", value, "thirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("thirdparty_amount <=", value, "thirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountIn(List<BigDecimal> values) {
            addCriterion("thirdparty_amount in", values, "thirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountNotIn(List<BigDecimal> values) {
            addCriterion("thirdparty_amount not in", values, "thirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("thirdparty_amount between", value1, value2, "thirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("thirdparty_amount not between", value1, value2, "thirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andAccountAmountIsNull() {
            addCriterion("account_amount is null");
            return (Criteria) this;
        }

        public Criteria andAccountAmountIsNotNull() {
            addCriterion("account_amount is not null");
            return (Criteria) this;
        }

        public Criteria andAccountAmountEqualTo(BigDecimal value) {
            addCriterion("account_amount =", value, "accountAmount");
            return (Criteria) this;
        }

        public Criteria andAccountAmountNotEqualTo(BigDecimal value) {
            addCriterion("account_amount <>", value, "accountAmount");
            return (Criteria) this;
        }

        public Criteria andAccountAmountGreaterThan(BigDecimal value) {
            addCriterion("account_amount >", value, "accountAmount");
            return (Criteria) this;
        }

        public Criteria andAccountAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("account_amount >=", value, "accountAmount");
            return (Criteria) this;
        }

        public Criteria andAccountAmountLessThan(BigDecimal value) {
            addCriterion("account_amount <", value, "accountAmount");
            return (Criteria) this;
        }

        public Criteria andAccountAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("account_amount <=", value, "accountAmount");
            return (Criteria) this;
        }

        public Criteria andAccountAmountIn(List<BigDecimal> values) {
            addCriterion("account_amount in", values, "accountAmount");
            return (Criteria) this;
        }

        public Criteria andAccountAmountNotIn(List<BigDecimal> values) {
            addCriterion("account_amount not in", values, "accountAmount");
            return (Criteria) this;
        }

        public Criteria andAccountAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("account_amount between", value1, value2, "accountAmount");
            return (Criteria) this;
        }

        public Criteria andAccountAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("account_amount not between", value1, value2, "accountAmount");
            return (Criteria) this;
        }

        public Criteria andRealPaidAmountIsNull() {
            addCriterion("real_paid_amount is null");
            return (Criteria) this;
        }

        public Criteria andRealPaidAmountIsNotNull() {
            addCriterion("real_paid_amount is not null");
            return (Criteria) this;
        }

        public Criteria andRealPaidAmountEqualTo(BigDecimal value) {
            addCriterion("real_paid_amount =", value, "realPaidAmount");
            return (Criteria) this;
        }

        public Criteria andRealPaidAmountNotEqualTo(BigDecimal value) {
            addCriterion("real_paid_amount <>", value, "realPaidAmount");
            return (Criteria) this;
        }

        public Criteria andRealPaidAmountGreaterThan(BigDecimal value) {
            addCriterion("real_paid_amount >", value, "realPaidAmount");
            return (Criteria) this;
        }

        public Criteria andRealPaidAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("real_paid_amount >=", value, "realPaidAmount");
            return (Criteria) this;
        }

        public Criteria andRealPaidAmountLessThan(BigDecimal value) {
            addCriterion("real_paid_amount <", value, "realPaidAmount");
            return (Criteria) this;
        }

        public Criteria andRealPaidAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("real_paid_amount <=", value, "realPaidAmount");
            return (Criteria) this;
        }

        public Criteria andRealPaidAmountIn(List<BigDecimal> values) {
            addCriterion("real_paid_amount in", values, "realPaidAmount");
            return (Criteria) this;
        }

        public Criteria andRealPaidAmountNotIn(List<BigDecimal> values) {
            addCriterion("real_paid_amount not in", values, "realPaidAmount");
            return (Criteria) this;
        }

        public Criteria andRealPaidAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("real_paid_amount between", value1, value2, "realPaidAmount");
            return (Criteria) this;
        }

        public Criteria andRealPaidAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("real_paid_amount not between", value1, value2, "realPaidAmount");
            return (Criteria) this;
        }

        public Criteria andRealThirdpartyAmountIsNull() {
            addCriterion("real_thirdparty_amount is null");
            return (Criteria) this;
        }

        public Criteria andRealThirdpartyAmountIsNotNull() {
            addCriterion("real_thirdparty_amount is not null");
            return (Criteria) this;
        }

        public Criteria andRealThirdpartyAmountEqualTo(BigDecimal value) {
            addCriterion("real_thirdparty_amount =", value, "realThirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andRealThirdpartyAmountNotEqualTo(BigDecimal value) {
            addCriterion("real_thirdparty_amount <>", value, "realThirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andRealThirdpartyAmountGreaterThan(BigDecimal value) {
            addCriterion("real_thirdparty_amount >", value, "realThirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andRealThirdpartyAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("real_thirdparty_amount >=", value, "realThirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andRealThirdpartyAmountLessThan(BigDecimal value) {
            addCriterion("real_thirdparty_amount <", value, "realThirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andRealThirdpartyAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("real_thirdparty_amount <=", value, "realThirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andRealThirdpartyAmountIn(List<BigDecimal> values) {
            addCriterion("real_thirdparty_amount in", values, "realThirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andRealThirdpartyAmountNotIn(List<BigDecimal> values) {
            addCriterion("real_thirdparty_amount not in", values, "realThirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andRealThirdpartyAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("real_thirdparty_amount between", value1, value2, "realThirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andRealThirdpartyAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("real_thirdparty_amount not between", value1, value2, "realThirdpartyAmount");
            return (Criteria) this;
        }

        public Criteria andRealAccountAmountIsNull() {
            addCriterion("real_account_amount is null");
            return (Criteria) this;
        }

        public Criteria andRealAccountAmountIsNotNull() {
            addCriterion("real_account_amount is not null");
            return (Criteria) this;
        }

        public Criteria andRealAccountAmountEqualTo(BigDecimal value) {
            addCriterion("real_account_amount =", value, "realAccountAmount");
            return (Criteria) this;
        }

        public Criteria andRealAccountAmountNotEqualTo(BigDecimal value) {
            addCriterion("real_account_amount <>", value, "realAccountAmount");
            return (Criteria) this;
        }

        public Criteria andRealAccountAmountGreaterThan(BigDecimal value) {
            addCriterion("real_account_amount >", value, "realAccountAmount");
            return (Criteria) this;
        }

        public Criteria andRealAccountAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("real_account_amount >=", value, "realAccountAmount");
            return (Criteria) this;
        }

        public Criteria andRealAccountAmountLessThan(BigDecimal value) {
            addCriterion("real_account_amount <", value, "realAccountAmount");
            return (Criteria) this;
        }

        public Criteria andRealAccountAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("real_account_amount <=", value, "realAccountAmount");
            return (Criteria) this;
        }

        public Criteria andRealAccountAmountIn(List<BigDecimal> values) {
            addCriterion("real_account_amount in", values, "realAccountAmount");
            return (Criteria) this;
        }

        public Criteria andRealAccountAmountNotIn(List<BigDecimal> values) {
            addCriterion("real_account_amount not in", values, "realAccountAmount");
            return (Criteria) this;
        }

        public Criteria andRealAccountAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("real_account_amount between", value1, value2, "realAccountAmount");
            return (Criteria) this;
        }

        public Criteria andRealAccountAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("real_account_amount not between", value1, value2, "realAccountAmount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountIsNull() {
            addCriterion("thirdparty_discount is null");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountIsNotNull() {
            addCriterion("thirdparty_discount is not null");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountEqualTo(BigDecimal value) {
            addCriterion("thirdparty_discount =", value, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountNotEqualTo(BigDecimal value) {
            addCriterion("thirdparty_discount <>", value, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountGreaterThan(BigDecimal value) {
            addCriterion("thirdparty_discount >", value, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("thirdparty_discount >=", value, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountLessThan(BigDecimal value) {
            addCriterion("thirdparty_discount <", value, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("thirdparty_discount <=", value, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountIn(List<BigDecimal> values) {
            addCriterion("thirdparty_discount in", values, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountNotIn(List<BigDecimal> values) {
            addCriterion("thirdparty_discount not in", values, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("thirdparty_discount between", value1, value2, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andThirdpartyDiscountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("thirdparty_discount not between", value1, value2, "thirdpartyDiscount");
            return (Criteria) this;
        }

        public Criteria andGatewayPaymentIdIsNull() {
            addCriterion("gateway_payment_id is null");
            return (Criteria) this;
        }

        public Criteria andGatewayPaymentIdIsNotNull() {
            addCriterion("gateway_payment_id is not null");
            return (Criteria) this;
        }

        public Criteria andGatewayPaymentIdEqualTo(String value) {
            addCriterion("gateway_payment_id =", value, "gatewayPaymentId");
            return (Criteria) this;
        }

        public Criteria andGatewayPaymentIdNotEqualTo(String value) {
            addCriterion("gateway_payment_id <>", value, "gatewayPaymentId");
            return (Criteria) this;
        }

        public Criteria andGatewayPaymentIdGreaterThan(String value) {
            addCriterion("gateway_payment_id >", value, "gatewayPaymentId");
            return (Criteria) this;
        }

        public Criteria andGatewayPaymentIdGreaterThanOrEqualTo(String value) {
            addCriterion("gateway_payment_id >=", value, "gatewayPaymentId");
            return (Criteria) this;
        }

        public Criteria andGatewayPaymentIdLessThan(String value) {
            addCriterion("gateway_payment_id <", value, "gatewayPaymentId");
            return (Criteria) this;
        }

        public Criteria andGatewayPaymentIdLessThanOrEqualTo(String value) {
            addCriterion("gateway_payment_id <=", value, "gatewayPaymentId");
            return (Criteria) this;
        }

        public Criteria andGatewayPaymentIdLike(String value) {
            addCriterion("gateway_payment_id like", value, "gatewayPaymentId");
            return (Criteria) this;
        }

        public Criteria andGatewayPaymentIdNotLike(String value) {
            addCriterion("gateway_payment_id not like", value, "gatewayPaymentId");
            return (Criteria) this;
        }

        public Criteria andGatewayPaymentIdIn(List<String> values) {
            addCriterion("gateway_payment_id in", values, "gatewayPaymentId");
            return (Criteria) this;
        }

        public Criteria andGatewayPaymentIdNotIn(List<String> values) {
            addCriterion("gateway_payment_id not in", values, "gatewayPaymentId");
            return (Criteria) this;
        }

        public Criteria andGatewayPaymentIdBetween(String value1, String value2) {
            addCriterion("gateway_payment_id between", value1, value2, "gatewayPaymentId");
            return (Criteria) this;
        }

        public Criteria andGatewayPaymentIdNotBetween(String value1, String value2) {
            addCriterion("gateway_payment_id not between", value1, value2, "gatewayPaymentId");
            return (Criteria) this;
        }

        public Criteria andThirdpartyPaymentIdIsNull() {
            addCriterion("thirdparty_payment_id is null");
            return (Criteria) this;
        }

        public Criteria andThirdpartyPaymentIdIsNotNull() {
            addCriterion("thirdparty_payment_id is not null");
            return (Criteria) this;
        }

        public Criteria andThirdpartyPaymentIdEqualTo(String value) {
            addCriterion("thirdparty_payment_id =", value, "thirdpartyPaymentId");
            return (Criteria) this;
        }

        public Criteria andThirdpartyPaymentIdNotEqualTo(String value) {
            addCriterion("thirdparty_payment_id <>", value, "thirdpartyPaymentId");
            return (Criteria) this;
        }

        public Criteria andThirdpartyPaymentIdGreaterThan(String value) {
            addCriterion("thirdparty_payment_id >", value, "thirdpartyPaymentId");
            return (Criteria) this;
        }

        public Criteria andThirdpartyPaymentIdGreaterThanOrEqualTo(String value) {
            addCriterion("thirdparty_payment_id >=", value, "thirdpartyPaymentId");
            return (Criteria) this;
        }

        public Criteria andThirdpartyPaymentIdLessThan(String value) {
            addCriterion("thirdparty_payment_id <", value, "thirdpartyPaymentId");
            return (Criteria) this;
        }

        public Criteria andThirdpartyPaymentIdLessThanOrEqualTo(String value) {
            addCriterion("thirdparty_payment_id <=", value, "thirdpartyPaymentId");
            return (Criteria) this;
        }

        public Criteria andThirdpartyPaymentIdLike(String value) {
            addCriterion("thirdparty_payment_id like", value, "thirdpartyPaymentId");
            return (Criteria) this;
        }

        public Criteria andThirdpartyPaymentIdNotLike(String value) {
            addCriterion("thirdparty_payment_id not like", value, "thirdpartyPaymentId");
            return (Criteria) this;
        }

        public Criteria andThirdpartyPaymentIdIn(List<String> values) {
            addCriterion("thirdparty_payment_id in", values, "thirdpartyPaymentId");
            return (Criteria) this;
        }

        public Criteria andThirdpartyPaymentIdNotIn(List<String> values) {
            addCriterion("thirdparty_payment_id not in", values, "thirdpartyPaymentId");
            return (Criteria) this;
        }

        public Criteria andThirdpartyPaymentIdBetween(String value1, String value2) {
            addCriterion("thirdparty_payment_id between", value1, value2, "thirdpartyPaymentId");
            return (Criteria) this;
        }

        public Criteria andThirdpartyPaymentIdNotBetween(String value1, String value2) {
            addCriterion("thirdparty_payment_id not between", value1, value2, "thirdpartyPaymentId");
            return (Criteria) this;
        }

        public Criteria andPayChannelIsNull() {
            addCriterion("pay_channel is null");
            return (Criteria) this;
        }

        public Criteria andPayChannelIsNotNull() {
            addCriterion("pay_channel is not null");
            return (Criteria) this;
        }

        public Criteria andPayChannelEqualTo(String value) {
            addCriterion("pay_channel =", value, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelNotEqualTo(String value) {
            addCriterion("pay_channel <>", value, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelGreaterThan(String value) {
            addCriterion("pay_channel >", value, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelGreaterThanOrEqualTo(String value) {
            addCriterion("pay_channel >=", value, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelLessThan(String value) {
            addCriterion("pay_channel <", value, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelLessThanOrEqualTo(String value) {
            addCriterion("pay_channel <=", value, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelLike(String value) {
            addCriterion("pay_channel like", value, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelNotLike(String value) {
            addCriterion("pay_channel not like", value, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelIn(List<String> values) {
            addCriterion("pay_channel in", values, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelNotIn(List<String> values) {
            addCriterion("pay_channel not in", values, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelBetween(String value1, String value2) {
            addCriterion("pay_channel between", value1, value2, "payChannel");
            return (Criteria) this;
        }

        public Criteria andPayChannelNotBetween(String value1, String value2) {
            addCriterion("pay_channel not between", value1, value2, "payChannel");
            return (Criteria) this;
        }

        public Criteria andRetryTimesIsNull() {
            addCriterion("retry_times is null");
            return (Criteria) this;
        }

        public Criteria andRetryTimesIsNotNull() {
            addCriterion("retry_times is not null");
            return (Criteria) this;
        }

        public Criteria andRetryTimesEqualTo(Integer value) {
            addCriterion("retry_times =", value, "retryTimes");
            return (Criteria) this;
        }

        public Criteria andRetryTimesNotEqualTo(Integer value) {
            addCriterion("retry_times <>", value, "retryTimes");
            return (Criteria) this;
        }

        public Criteria andRetryTimesGreaterThan(Integer value) {
            addCriterion("retry_times >", value, "retryTimes");
            return (Criteria) this;
        }

        public Criteria andRetryTimesGreaterThanOrEqualTo(Integer value) {
            addCriterion("retry_times >=", value, "retryTimes");
            return (Criteria) this;
        }

        public Criteria andRetryTimesLessThan(Integer value) {
            addCriterion("retry_times <", value, "retryTimes");
            return (Criteria) this;
        }

        public Criteria andRetryTimesLessThanOrEqualTo(Integer value) {
            addCriterion("retry_times <=", value, "retryTimes");
            return (Criteria) this;
        }

        public Criteria andRetryTimesIn(List<Integer> values) {
            addCriterion("retry_times in", values, "retryTimes");
            return (Criteria) this;
        }

        public Criteria andRetryTimesNotIn(List<Integer> values) {
            addCriterion("retry_times not in", values, "retryTimes");
            return (Criteria) this;
        }

        public Criteria andRetryTimesBetween(Integer value1, Integer value2) {
            addCriterion("retry_times between", value1, value2, "retryTimes");
            return (Criteria) this;
        }

        public Criteria andRetryTimesNotBetween(Integer value1, Integer value2) {
            addCriterion("retry_times not between", value1, value2, "retryTimes");
            return (Criteria) this;
        }

        public Criteria andMemoIsNull() {
            addCriterion("memo is null");
            return (Criteria) this;
        }

        public Criteria andMemoIsNotNull() {
            addCriterion("memo is not null");
            return (Criteria) this;
        }

        public Criteria andMemoEqualTo(String value) {
            addCriterion("memo =", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotEqualTo(String value) {
            addCriterion("memo <>", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoGreaterThan(String value) {
            addCriterion("memo >", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoGreaterThanOrEqualTo(String value) {
            addCriterion("memo >=", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLessThan(String value) {
            addCriterion("memo <", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLessThanOrEqualTo(String value) {
            addCriterion("memo <=", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoLike(String value) {
            addCriterion("memo like", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotLike(String value) {
            addCriterion("memo not like", value, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoIn(List<String> values) {
            addCriterion("memo in", values, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotIn(List<String> values) {
            addCriterion("memo not in", values, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoBetween(String value1, String value2) {
            addCriterion("memo between", value1, value2, "memo");
            return (Criteria) this;
        }

        public Criteria andMemoNotBetween(String value1, String value2) {
            addCriterion("memo not between", value1, value2, "memo");
            return (Criteria) this;
        }

        public Criteria andGatewayCallbackTimeIsNull() {
            addCriterion("gateway_callback_time is null");
            return (Criteria) this;
        }

        public Criteria andGatewayCallbackTimeIsNotNull() {
            addCriterion("gateway_callback_time is not null");
            return (Criteria) this;
        }

        public Criteria andGatewayCallbackTimeEqualTo(Date value) {
            addCriterion("gateway_callback_time =", value, "gatewayCallbackTime");
            return (Criteria) this;
        }

        public Criteria andGatewayCallbackTimeNotEqualTo(Date value) {
            addCriterion("gateway_callback_time <>", value, "gatewayCallbackTime");
            return (Criteria) this;
        }

        public Criteria andGatewayCallbackTimeGreaterThan(Date value) {
            addCriterion("gateway_callback_time >", value, "gatewayCallbackTime");
            return (Criteria) this;
        }

        public Criteria andGatewayCallbackTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("gateway_callback_time >=", value, "gatewayCallbackTime");
            return (Criteria) this;
        }

        public Criteria andGatewayCallbackTimeLessThan(Date value) {
            addCriterion("gateway_callback_time <", value, "gatewayCallbackTime");
            return (Criteria) this;
        }

        public Criteria andGatewayCallbackTimeLessThanOrEqualTo(Date value) {
            addCriterion("gateway_callback_time <=", value, "gatewayCallbackTime");
            return (Criteria) this;
        }

        public Criteria andGatewayCallbackTimeIn(List<Date> values) {
            addCriterion("gateway_callback_time in", values, "gatewayCallbackTime");
            return (Criteria) this;
        }

        public Criteria andGatewayCallbackTimeNotIn(List<Date> values) {
            addCriterion("gateway_callback_time not in", values, "gatewayCallbackTime");
            return (Criteria) this;
        }

        public Criteria andGatewayCallbackTimeBetween(Date value1, Date value2) {
            addCriterion("gateway_callback_time between", value1, value2, "gatewayCallbackTime");
            return (Criteria) this;
        }

        public Criteria andGatewayCallbackTimeNotBetween(Date value1, Date value2) {
            addCriterion("gateway_callback_time not between", value1, value2, "gatewayCallbackTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNull() {
            addCriterion("add_time is null");
            return (Criteria) this;
        }

        public Criteria andAddTimeIsNotNull() {
            addCriterion("add_time is not null");
            return (Criteria) this;
        }

        public Criteria andAddTimeEqualTo(Date value) {
            addCriterion("add_time =", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotEqualTo(Date value) {
            addCriterion("add_time <>", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThan(Date value) {
            addCriterion("add_time >", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("add_time >=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThan(Date value) {
            addCriterion("add_time <", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeLessThanOrEqualTo(Date value) {
            addCriterion("add_time <=", value, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeIn(List<Date> values) {
            addCriterion("add_time in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotIn(List<Date> values) {
            addCriterion("add_time not in", values, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeBetween(Date value1, Date value2) {
            addCriterion("add_time between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andAddTimeNotBetween(Date value1, Date value2) {
            addCriterion("add_time not between", value1, value2, "addTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}